
package com.bei_en.teacher.management.model.system.vo;

import java.util.*;
import com.bei_en.teacher.management.model.system.bean.SystemUser;
import com.bei_en.teacher.management.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;

/**
 * 用于前端页面数据传递
 *
 * @author Longqs
 * @date 2016-6-15 14:39:11
 */
public class SystemUserVo extends BaseVo {

    private SystemUser systemUser;
    private String userRole;

    public String getUserRole() {

	return userRole;
    }

    public void setUserRole(String userRole) {

	this.userRole = userRole;
    }

    public SystemUserVo() {

	this.systemUser = new SystemUser();
    }

    public SystemUserVo(SystemUser systemUser) {

	this.systemUser = systemUser;
    }
    public SystemUserVo(SystemUser systemUser, String userRole) {

	this.systemUser = systemUser;
	this.userRole = userRole;
    }

    public SystemUser getSystemUser() {

	return this.systemUser;
    }

    public void setSystemUser(SystemUser systemUser) {

	this.systemUser = systemUser;
    }

    public Integer getId() {

	return this.systemUser.getUserId();
    }

    public void setId(Integer id) {

	this.systemUser.setUserId(id);
    }

    public void setUserId(Integer value) {

	this.systemUser.setUserId(value);
    }

    public Integer getUserId() {

	return this.systemUser.getUserId();
    }

    public void setWorkNumber(Integer value) {

	this.systemUser.setWorkNumber(value);
    }

    @NotNull
    public Integer getWorkNumber() {

	return this.systemUser.getWorkNumber();
    }

    public void setName(String value) {

	this.systemUser.setName(value);
    }

    @NotBlank
    @Length(max = 20)
    public String getName() {

	return this.systemUser.getName();
    }

    public void setPassword(String value) {

	this.systemUser.setPassword(value);
    }

    @NotBlank
    @Length(max = 100)
    public String getPassword() {

	return this.systemUser.getPassword();
    }

    public void setComment(String value) {

	this.systemUser.setComment(value);
    }

    @Length(max = 100)
    public String getComment() {

	return this.systemUser.getComment();
    }

    public void setSalt(String value) {

	this.systemUser.setSalt(value);
    }

    @Length(max = 100)
    public String getSalt() {

	return this.systemUser.getSalt();
    }

    public void setStatus(Integer value) {

	this.systemUser.setStatus(value);
    }

    @NotNull
    @Max(127)
    public Integer getStatus() {

	return this.systemUser.getStatus();
    }

    public void setCreateTime(Date value) {

	this.systemUser.setCreateTime(value);
    }

    public Date getCreateTime() {

	return this.systemUser.getCreateTime();
    }

    public void setUpdateTime(Date value) {

	this.systemUser.setUpdateTime(value);
    }

    public Date getUpdateTime() {

	return this.systemUser.getUpdateTime();
    }

}